﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HANS_WeChat.Base.Model.WeModel.CommonMenu
{
    public class WeChatCommonMunu
    {

        /// <summary>
        ///  主键
        /// </summary>		
        [DisplayName("主键")]
        public String Id { get; set; }
        /// <summary>
        ///  微信公众号
        /// </summary>		
        [DisplayName("微信公众号")]

        public String Wechat { get; set; }
        /// <summary>
        ///  菜单标题
        /// </summary>		
        [DisplayName("菜单标题")]

        public String Menuname { get; set; }
        /// <summary>
        ///  菜单的响应动作类型
        /// </summary>		
        [DisplayName("菜单的响应动作Key")]

        public String Menukey { get; set; }
        /// <summary>
        ///  菜单的响应动作类型
        /// </summary>		
        [DisplayName("菜单的响应动作类型")]
        public String Menutype { get; set; }
        /// <summary>
        ///  网页链接
        /// </summary>		
        [DisplayName("网页链接")]
        public String Url { get; set; }
        /// <summary>
        ///  永久素材接口返回的合法media_id
        /// </summary>		
        [DisplayName("永久素材接口返回的合法media_id")]
        public String Media_id { get; set; }
        /// <summary>
        ///  小程序的appid
        /// </summary>		
        [DisplayName("小程序的appid")]
        public String Appid { get; set; }
        /// <summary>
        ///  小程序的页面路径
        /// </summary>		
        [DisplayName("小程序的页面路径")]
        public String Pagepath { get; set; }
        /// <summary>
        ///  排序
        /// </summary>		
        [DisplayName("排序")]
        public Int32 ?Menuorder { get; set; }
        /// <summary>
        ///  父键
        /// </summary>		
        [DisplayName("父键")]
        public String Parent_id { get; set; }
        /// <summary>
        /// 父菜单名字
        /// </summary>
        public string ParentName { get; set; } = "顶级";

        /// <summary>
        /// 子菜单
        /// </summary>
        public List<WeChatCommonMunu> WeChatCommonMunuChild { get; set; } = new List<WeChatCommonMunu>();
    }
}
